package org.zjx.service.impl;

import org.zjx.db.BuyItemDB;
import org.zjx.model.game.BuyItem;
import org.zjx.service.BuyItemServer;

import java.util.List;

public class BuyItemServerImpl implements BuyItemServer {
    @Override
    public BuyItem getBuyItem(String itemName) {
        return new BuyItemDB().findByItemName(itemName);
    }

    @Override
    public List<BuyItem> getBuyItemsByNpc(int npcId) {
        return new BuyItemDB().findByNpcId(npcId);
    }
}
